package com.yjd.pub.settlement.dao.impl;

import com.yjd.comm.util.FrameUtil;
import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.comm.settlement.model.ClearDayMerchantModel;
import com.yjd.pub.settlement.dao.IClearDayMerchantDao;

import java.util.Map;

/**
 * <b>description</b>：商户日结数据访问层 <br>
 * <b>time</b>：2017-08-11 17:28:17 <br>
 * <b>author</b>： yangchangyan@yijiedai.com
 */
@Component("merchantClearDayDao")
public class ClearDayMerchantDaoImpl extends BaseDaoImpl implements IClearDayMerchantDao {

	private static final String SQLMAPNAMESPACE = ClearDayMerchantModel.class.getName();
	private static final String PKNAME = "id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	@Override
	public int deleteSettlementList(Map<Object, Object> paramMap, boolean write) throws Exception {
		return this.getSqlMap(true).delete(this.getStatement("deleteSettlementList"), paramMap);
	}
}
